package com.originskyseed.platform.cms.service;

import java.util.List;
import java.util.Map;

import com.originskyseed.platform.cms.model.CmsMailRelReceive;
import com.originskyseed.platform.core.base.BasePage;

/**
 * 邮件关联接收人信息表Service接口类（OSI_MAIL_REL_RECEIVE）
 *
 * @author wlj
 */
public interface ICmsMailRelReceiveService {

	/**
	 * 删除记录
	 *
	 * @param id
	 * @return
	 * @throws Exception
	 */
	public int deleteByPrimaryKey(String id) throws Exception;

	/**
	 * 批量删除记录
	 *
	 * @param ids
	 * @return
	 * @throws Exception
	 */
	public int deleteByPrimaryKeys(List<String> ids) throws Exception;

	/**
	 * 插入记录
	 *
	 * @param record
	 * @return
	 * @throws Exception
	 */
	public int insert(CmsMailRelReceive record) throws Exception;

	/**
	 * 插入记录（仅非空值字段）
	 *
	 * @param record
	 * @return
	 * @throws Exception
	 */
	public int insertSelective(CmsMailRelReceive record) throws Exception;

	/**
	 * 更新记录
	 *
	 * @param record
	 * @return
	 * @throws Exception
	 */
	public int updateByPrimaryKey(CmsMailRelReceive record) throws Exception;

	/**
	 * 更新记录（仅非空值字段）
	 *
	 * @param record
	 * @return
	 * @throws Exception
	 */
	public int updateByPrimaryKeySelective(CmsMailRelReceive record) throws Exception;

	/**
	 * 查询记录
	 *
	 * @param id
	 * @return
	 * @throws Exception
	 */
	public CmsMailRelReceive selectByPrimaryKey(String id) throws Exception;

	/**
	 * 查询列表
	 *
	 * @param record
	 * @return
	 * @throws Exception
	 */
	public List<CmsMailRelReceive> selectList(CmsMailRelReceive record) throws Exception;

	/**
	 * 查询列表
	 *
	 * @param params
	 * @param page
	 * @return
	 * @throws Exception
	 */
	public BasePage<CmsMailRelReceive> selectListByPage(Map<String, Object> params, BasePage<CmsMailRelReceive> page) throws Exception;

}
